package com.hancheng.goodscloud.business.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class GoodsInsertDTO {
    @ApiModelProperty(value = "商品名称")
    @NotBlank(message = "{商品名称不能为空}")
    private String goodsName;

    @ApiModelProperty(value = "商品编码")
    @NotBlank(message = "{商品编码不能为空}")
    private String goodsCode;

    @ApiModelProperty(value = "商品价格")
    @NotNull(message = "{商品价格不能为空}")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "商品数量")
    @NotNull(message = "{商品数量不能为空}")
    private Integer goodsQuantity;

    @ApiModelProperty(value = "备注")
    private String remark;
}
